<template>
	<view class="collect-content">
		<u-cell title="修改密码" isLink url="/pages/login/changePwd/changePwd"></u-cell>
		<u-cell title="收货地址" isLink url="/pages/message/deliveryAddress/deliveryAddress" @click="aa"></u-cell>
		<view class="detail-bottom-btn" @click="switchLogin">
			退出登录
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {
			aa(){
				uni.setStorageSync('conmeAddressTitle','设置')
			},
			// 退出登陆
			switchLogin(){
				// uni.removeStorageSync('token')
				uni.removeStorageSync('addressInfo');
				uni.removeStorageSync('goodsInfo');
				uni.reLaunch({
					url:'/pages/login/login/login'
				})
			}
		}
	}
</script>
<style lang="scss" scoped>
	page {
		background-color: #F6F7F9;
	}

	.collect-content {
		background-color: #fff;
	}

	.detail-bottom-btn {
		position: fixed;
		z-index: 200;
		bottom: 30rpx;
		width: 686rpx;
		height: 88rpx;
		background: linear-gradient(90deg, #6AAE2B 0%, #1B7E38 100%);
		font-weight: 500;
		font-size: 32rpx;
		color: #FFFFFF;
		line-height: 88rpx;
		text-align: center;
		left: 50%;
		transform: translate(-50%);
		border-radius: 50rpx;
	}
</style>